package com.nuoniu.sibanyun.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @ClassName NuoNiuException
 * @Description 诺牛科技业务异常
 * @Authpr baiqiang
 * @Date 2020/5/12 16:45
 **/
@Data
@AllArgsConstructor
public class NuoNiuException extends RuntimeException {
    private Integer code;
    private String msg;

    public NuoNiuException(String msg){
        this.code = 500;
        this.msg = msg;
    }
    public NuoNiuException(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
